<?php
namespace app\common\validate;

use think\Validate;

class Article extends Validate{

    protected $rule = [
        'title'       =>'require',
        'cid'         =>'require',
        'desc'        =>'require',
        'seo_title'   =>'require',
        'seo_desc'    =>'require',
        'seo_keywords'=>'require',
        'cover'       =>'require',
        'content'     =>'require'
    ];

    protected $message = [
        'title.require'            =>'请填写标题',
        'cid.require'              =>'请选择分类',
        'desc.require'             =>'请输入描述',
        'seo_title.require'        =>'请输入seo标题',
        'seo_desc.require'         =>'请输入seo描述',
        'seo_keywords.require'     =>'请输入seo关键词',
        'cover.require'            =>'请上传封面图',
        'content.require'          =>'请输入文章内容'
    ];


    protected $scene = [
        'base_add'=>['title','content'],
    ];




}